function judge(){
	if($('.mui-switch').is('.mui-active') == true){
		$('.mui-switch').parent().find('#status').val(0);
	}else{
		$('.mui-switch').parent().find('#status').val(1);
	}
}
judge();
$('.mui-switch').on('click',function(){
	judge();
})

/*--------------------btnSubmit------------------------*/
$('.btnSubmit').on('click',function(){
	var price = $('.price').val();
	var num = $('.dealerNum').val();
	var status = $('#status').val();
	if(Boolean(price) && Boolean(num)){
		window.opener.document.getElementById('dealerSetInfo').innerHTML = price+","+num+","+status;
		/*window.location.href="/weishang/supplier/priceSet.html";*/
		window.close();
	}
	
})